import {
    Form,
    FormItem,
    Button,
    Input,
    MessageBox,
    Message,
    Header,
    Container,
    Menu,
    Submenu,
    MenuItem,
    MenuItemGroup,
    Row,
    Col,
    Avatar,
    Icon,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    RadioButton,
    RadioGroup,
    Aside,
    Main,
    Breadcrumb,
    BreadcrumbItem,
    Tabs,
    TabPane,
    Tag,
    Card,
    Table,
    TableColumn,
    Switch,
    Pagination,
    Tooltip,
    Drawer,
    Loading,
    Dialog,
    Upload,
    Progress,
    Image,
    ButtonGroup,
    Checkbox,
    CheckboxGroup,
    InputNumber,
    Popover,
} from 'element-ui'
const element = {
    install: function(Vue) {
        Vue.use(Pagination);
        Vue.use(Button)
        Vue.use(Form)
        Vue.use(FormItem)
        Vue.use(Input)
        Vue.use(Header)
        Vue.use(Container)
        Vue.use(Menu);
        Vue.use(Submenu);
        Vue.use(MenuItem);
        Vue.use(MenuItemGroup);
        Vue.use(Row);
        Vue.use(Col);
        Vue.use(Avatar);
        Vue.use(Icon);
        Vue.use(Dropdown);
        Vue.use(DropdownMenu);
        Vue.use(DropdownItem);
        Vue.use(RadioButton);
        Vue.use(RadioGroup);
        Vue.use(Aside);
        Vue.use(Main);
        Vue.use(Breadcrumb);
        Vue.use(BreadcrumbItem);
        Vue.use(Tabs);
        Vue.use(TabPane);
        Vue.use(Tag);
        Vue.use(Card);
        Vue.use(Table);
        Vue.use(TableColumn);
        Vue.use(Switch);
        Vue.use(Tooltip);
        Vue.use(Drawer);
        Vue.use(Dialog);
        Vue.use(Upload);
        Vue.use(Progress);
        Vue.use(Image);
        Vue.use(ButtonGroup);
        Vue.use(Checkbox);
        Vue.use(CheckboxGroup);
        Vue.use(InputNumber);
        Vue.use(Popover);
        Vue.use(Loading.directive);


        Vue.prototype.$loading = Loading.service;
        Vue.prototype.$msgbox = MessageBox;
        Vue.prototype.$alert = MessageBox.alert;
        Vue.prototype.$confirm = MessageBox.confirm;
        Vue.prototype.$prompt = MessageBox.prompt;
        Vue.prototype.$notify = Notification;
        Vue.prototype.$message = Message;
    }
}
export default element;